home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Development / General / MWC & CodeResources / SetUpA4.h < prev    next >
Text File  |  1994-01-13  |  401b  |  28 lines

  1. //
  2. //    CodeResource / DRVR / DA support functions 
  3. //
  4.  
  5. #ifndef __SETUPA4__
  6. #define __SETUPA4__
  7.  
  8. static void RememberA4(void);
  9.  
  10. static asm long SetUpA4(void)
  11. {
  12.     move.l    a4,d0
  13.     lea        storage,a4
  14.     move.l    (a4),a4
  15.     rts
  16.  
  17. storage:    dc.l    0    // this storage is only referenced thru data cache
  18.  
  19.     entry    static RememberA4
  20.     lea        storage,a0
  21.     move.l    a4,(a0)
  22.     rts
  23. }
  24.  
  25. static long RestoreA4(long:__D0):__D0 = 0xC18C;
  26.  
  27. #endif
  28.